Skip to content

Fix Lua callback Vimscript calls, closes #181#183

Closed
aweis89 wants to merge 1 commit intoCopilotC-Nvim:canaryfrom
aweis89:181-fix-vim-calls
Closed

Fix Lua callback Vimscript calls, closes #181#183
aweis89 wants to merge 1 commit intoCopilotC-Nvim:canaryfrom
aweis89:181-fix-vim-calls

Conversation

@aweis89
Copy link
Copy Markdown
Contributor

@aweis89 aweis89 commented Mar 17, 2024

Title: Resolve Lua-Vimscript Callback Issues (#181)

Changes:

  • Replaced vim.fn.tempname with os.tmpname() and vim.fn.writefile with custom Lua file writing function to fix E5560 errors.
  • Ensured compatibility by adapting plugin functionalities to native Lua operations.

Motivation:
Addressed errors related to calling Vimscript functions from Lua callbacks, improving plugin stability and performance.

Testing:
Conducted manual tests to confirm correct behavior.

@deathbeam
Copy link
Copy Markdown
Collaborator

Made the fix as well in #182, would've waited if i knew someone else was fixing it but oh well, should be resolved now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants